package com.cskaoyan.controller.vx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.service.vx.WxStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("wx/storage")
public class WxStorageUploadController {
    @Autowired
    WxStorageService wxStorageService;

    @RequestMapping("upload")
    public BaseRespVo upload(MultipartFile file){
        return wxStorageService.uploadPicture(file);
    }
}
